<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="admin_header.jsp"%>
<%@ include file="admin_sidebar.jsp"%>

<div class="content">
    <div class="form-content">
        <form action="AdminNovelUpdateServlet?novel_id=${novel.novel_id}" method="post" class="user-info">
            <div class="user-info-item">
                <div class="user-info-title">小说名:</div>
                <input type="text" class="user-info-content" name="title" required value="${novel.title}">
            </div>
            <div class="user-info-item">
                <div class="user-info-title">作者:</div>
                <input type="text" class="user-info-content" name="author" required value="${novel.author}">
            </div>
            <div class="user-info-item">
                <div class="user-info-title">详情:</div>
                <input type="text" class="user-info-content" name="description" required value="${novel.description}">
            </div>
            <div class="user-info-item">
                <div class="user-info-title">图片链接:</div>
                <input type="text" class="user-info-content" name="cover_image_url" required value="${novel.cover_image_url}">
            </div>
            <div class="user-info-item">
                <div class="user-info-title">类型:</div>
                <input type="text" class="user-info-content" name="category" required value="${novel.category}">
            </div>
            <div class="user-info-item">
                <div class="user-info-title">状态:</div>
                <input type="text" class="user-info-content" name="statu_s" required value="${novel.statu_s}">
            </div>
                        <div class="user-info-item">
                            <div class="user-info-title">更新时间:</div>
                            <input type="text" class="user-info-content" name="update_time" required value="${novel.update_time}">
                        </div>
            <div class="user-info-item">
                <div class="user-info-title">浏览量:</div>
                <input type="text" class="user-info-content" name="click_count" required value="${novel.click_count}">
            </div>
            <button type="submit" class="btnn">修改</button>
            <button class="btnn"><a href="NovelPageServlet?page=${novelPage}">返回</a></button><!-- 假设 edit_profile.jsp 是修改信息的页面 -->
        </form>
    </div>
</div>

<%@ include file="admin_footer.jsp"%>